module.exports = () => {
    return async (ctx, next) => {
        ctx.renderJSON = (context)=>{
            ctx.body = context;
        };
        await next();
    };
};